// import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);

/*Vuex.Store实例化*/
const store = new Vuex.Store({
  /*state在vuex中用于存储数据*/
  state: {
    transition: true,
  },
  /*mutations里面是放的是方法，主要用于改变stare里面的数据*/
  mutations: {
    ["Set_Transition"](state, data) {
      state.transition = data;
    },
  },
  /*getters计算属性*/
  getters: {

  },
  /*getters动态方法，需调用mutations方法更新state状态*/
  actions: {

  },
})
export default store;

